<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<script src="../../script/mui.min.js"></script>
		<link href="../../css/mui.min.css" rel="stylesheet"/>
		<link rel="stylesheet" href="../../css/CFNetPP_Base.css">
		<link rel="stylesheet" type="text/css" href="../../css/base.css"/>
		<script type="text/javascript" charset="utf-8">
			mui.init();
		</script>
		<style>
			/*.mui-table-view-cell {
			 height: 70px
			 }*/
			.mui-table-view .mui-media-object.mui-pull-left {
				margin-right: 13px;
			}
			.top_9 {
				margin-top: 9px
			}
			.mui-table-view .mui-media-object {
				line-height: 48px;
				max-width: 48px;
				height: 48px;
			}
			.mui-table-view-cell:active {
				color: #222222
			}
		</style>
	</head>
	<body>
		<div id="contentDiv" class="top_10">
			<ul class="mui-table-view">
				<li class="mui-table-view-cell mui-media" id="qiandao">
					<a class='mui-navigate-right'  href="javascript:;"> <img class="mui-media-object mui-pull-left"  src="../../image/icon_qiandao_.png">
					<div class="mui-media-body base_content_font" >
						签到
						<p class='mui-ellipsis top_9  font12' >
							谁来没来,一目了然,监控课堂到勤情况
						</p>
					</div> </a>
				</li>
				<li class="mui-table-view-cell mui-media" id="tiwen">
					<a class='mui-navigate-right' href="javascript:;"> <img class="mui-media-object mui-pull-left" src="../../image/icon_qusetion.png">
					<div class="mui-media-body base_content_font">
						提问
						<p class='mui-ellipsis top_9 font12'>
							丰富课堂趣味,让提问变得让人期待
						</p>
					</div> </a>
				</li>
				<li class="mui-table-view-cell mui-media" id="diaocha">
					<a class='mui-navigate-right' href="javascript:;"> <img class="mui-media-object mui-pull-left" src="../../image/diaocha.png">
					<div class="mui-media-body base_content_font" >
						<span id="research">调查</span>
						<p class='mui-ellipsis top_9 font12' id="research_info">
							随时发起调查问卷,跟踪课堂调查结果
						</p>
					</div> </a>
				</li>
				<li class="mui-table-view-cell mui-media" id="taolun">
					<a class='mui-navigate-right' href="javascript:;"> <img class="mui-media-object mui-pull-left" src="../../image/taolun.png">
					<div class="mui-media-body base_content_font">
						讨论
						<p class='mui-ellipsis top_9 font12'>
							课堂讨论,畅所欲言,学生讨论全程跟踪
						</p>
					</div> </a>
				</li>
				<li class="mui-table-view-cell mui-media" id="huping">
					<a class='mui-navigate-right' href="javascript:;"> <img class="mui-media-object mui-pull-left" src="../../image/icon_huping.png">
					<div class="mui-media-body base_content_font">
						互评
						<p class='mui-ellipsis top_9 font12'>
							课堂互评,随时开启互评
						</p>
					</div> </a>
				</li>
				<li class="mui-table-view-cell mui-media" id="vote">
					<a class='mui-navigate-right' href="javascript:;"> <img class="mui-media-object mui-pull-left" src="../../image/icon_vote.png">
					<div class="mui-media-body base_content_font">
						投票
						<p class='mui-ellipsis top_9 font12'>
							课堂投票,随时开启投票
						</p>
					</div> </a>
				</li>
				<li class="mui-table-view-cell mui-media" id="spontaneousMoments">
					<a class='mui-navigate-right' href="javascript:;"> <img class="mui-media-object mui-pull-left" src="../../image/icon_jcsj.png">
					<div class="mui-media-body base_content_font">
						精彩瞬间
						<!-- <p class='mui-ellipsis top_9 font12'>
							课堂投票,随时开启投票
						</p> -->
					</div> </a>
				</li>
			</ul>
		</div>
	</body>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/MD5.js"></script>
	<script src="../../script/jquery.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="../../script/requestTool.js"></script>
	<script type="text/javascript" src="../../script/timeStampTool.js"></script>
	<script src="../../script/common.js"></script>
	<script type="text/javascript">
	
		apiready = function() {
			$('#qiandao').click(function() {
				api.openWin({useWKWebView:true,
					name : 'TeacherSignMangeWin',
					url : 'TeacherSignMangeWin.html',
					pageParam : {
						cid : api.pageParam.courseid,
						pid : api.pageParam.planid,
						sourceurl : window.location.pathname,
						sourcetitle : document.title
					}
				});
			});
			$('#tiwen').click(function() {
				api.openWin({useWKWebView:true,
					name : 'TeacherQuestionsWin',
					url : 'TeacherQuestionsWin.html',
					pageParam : {
						cid : api.pageParam.courseid,
						pid : api.pageParam.planid,
						sourceurl : window.location.pathname,
						sourcetitle : document.title
					}
				});
			});
			$('#diaocha').click(function() {
				api.openWin({useWKWebView:true,
					name : 'Teacher_ResearchWindow',
					url : 'Teacher_ResearchWindow.html',
					pageParam : {
						cid : api.pageParam.courseid,
						pid : api.pageParam.planid,
						sourceurl : window.location.pathname,
						sourcetitle : document.title
					}
				});
			});
			$('#taolun').click(function() {
				api.openWin({useWKWebView:true,
					name : 'Discuss_TeacherListWin',
					url : '../Discuss/Discuss_TeacherListWin.html',
					pageParam : {
						cid : api.pageParam.courseid,
						pid : api.pageParam.planid,
						sourceurl : window.location.pathname,
						sourcetitle : document.title
					}
				});
			});
			$('#vote').click(function() {
				GetVoteStaus();
			});
			$('#huping').click(function() {
				api.openWin({useWKWebView:true,
					name : 'TeacherMutualRatingWind',
					url : '../MutualRating/TeacherMutualRatingWind.html',
					pageParam : {
						cid : api.pageParam.courseid,
						pid : api.pageParam.planid,
						sourceurl : window.location.pathname,
						sourcetitle : document.title
					}
				});
			});
			$('#spontaneousMoments').click(function(){
				api.openWin({useWKWebView:true,
					name : 'SpontaneousMoments_Win',
					url : '../Student_Classroom/SpontaneousMoments_Win.html',
					pageParam : {
						cid : api.pageParam.courseid,
						pid : api.pageParam.planid
					}
				});
			});
			ludongJudge();
			//
		}
		//获取未关闭的投票活动，如果存在，即进入上次未关闭的投票活动
		function GetVoteStaus() {
			var list = {
				cid : api.pageParam.courseid,
				pid : api.pageParam.planid,
				ismocc : api.pageParam.ismocc,
				sourceurl : window.location.pathname,
				sourcetitle : document.title
			};
			var params = {
				jid : $api.getStorage('cfnetppjxid'),
				uid : $api.getStorage('cfnetppuid'),
				tid : 6,
				cid : api.pageParam.courseid,
				pid : api.pageParam.planid,

			};
			cfnetppPOST(url_getVoteActiveStatus, params, false, function(data, status) {
				api.hideProgress();
				if (status == 'success') {
					if (data.code == 200) {
						list["iid"] = data.data.id;
						list["itemCheck"] = data.data.template;
						openScoreVoteFrame(list);
					} else {
						openVoteFrame(list)
					}
				} else {
					openVoteFrame(list)
				}
			});
		}

		//打开投票页
		function openVoteFrame(list) {
			api.openWin({useWKWebView:true,
				name : 'Teacher_VoteInfo',
				url : 'Teacher_VoteInfo.html',
				pageParam : list
			});
		}

		//打开进行中的投票页
		function openScoreVoteFrame(list) {
			api.openWin({useWKWebView:true,
				name : 'Teacher_VoteScoreWindow',
				url : 'Teacher_VoteScoreWindow.html',
				pageParam : list
			});
		}

		//是否是鲁东智慧课堂
		function ludongJudge() {
			//读取消息推送
			var jid = $api.getStorage('cfnetppjxid');
			if (jid != 425) {//非鲁东智能课堂
				$('#research').text('调查');
				$('#research_info').text('随时发起调查问卷,跟踪课堂调查结果');
			} else {
				$('#research').text('投票');
				$('#research_info').text('随时发起投票,跟踪课堂投票结果');
			}
		}
	</script>
</html>
